package com.entity;

public class Student {
	//学生id
	private Integer stu_id;
	//学生姓名
	private String stu_name;
	//性别
	private String stu_sex;
	//年龄
	private Integer stu_age;
	//专业编号
	private Integer stu_major_id;
	public Student(Integer stu_id, String stu_name, String stu_sex, Integer stu_age, Integer stu_major_id) {
		super();
		this.stu_id = stu_id;
		this.stu_name = stu_name;
		this.stu_sex = stu_sex;
		this.stu_age = stu_age;
		this.stu_major_id = stu_major_id;
	}
	public Student() {
		super();
	}
	/**
	 * @return the stu_id
	 */
	public Integer getStu_id() {
		return stu_id;
	}
	/**
	 * @param stu_id the stu_id to set
	 */
	public void setStu_id(Integer stu_id) {
		this.stu_id = stu_id;
	}
	/**
	 * @return the stu_name
	 */
	public String getStu_name() {
		return stu_name;
	}
	/**
	 * @param stu_name the stu_name to set
	 */
	public void setStu_name(String stu_name) {
		this.stu_name = stu_name;
	}
	/**
	 * @return the stu_sex
	 */
	public String getStu_sex() {
		return stu_sex;
	}
	/**
	 * @param stu_sex the stu_sex to set
	 */
	public void setStu_sex(String stu_sex) {
		this.stu_sex = stu_sex;
	}
	/**
	 * @return the stu_age
	 */
	public Integer getStu_age() {
		return stu_age;
	}
	/**
	 * @param stu_age the stu_age to set
	 */
	public void setStu_age(Integer stu_age) {
		this.stu_age = stu_age;
	}
	/**
	 * @return the stu_major_id
	 */
	public Integer getStu_major_id() {
		return stu_major_id;
	}
	/**
	 * @param stu_major_id the stu_major_id to set
	 */
	public void setStu_major_id(Integer stu_major_id) {
		this.stu_major_id = stu_major_id;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Student [stu_id=" + stu_id + ", stu_name=" + stu_name + ", stu_sex=" + stu_sex + ", stu_age=" + stu_age
				+ ", stu_major_id=" + stu_major_id + "]";
	}
	
	
	
	

}
